home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Queries / PGetLinkOptions.cpp < prev    next >
C/C++ Source or Header  |  1996-09-04  |  940b  |  37 lines

  1. /*
  2.  *--- PGetLinkOptions.cpp -------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:49 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PGetLinkOptions.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PGetLinkOptions.h"
  12. #include "PQuery.h"
  13. #include "PReplyBuf.h"
  14. #include "PRequestBuf.h"
  15.  
  16. const size_t REPLY_SIZE = 10;
  17.  
  18. PGetLinkOptions::PGetLinkOptions(PMBool bDefault)
  19. {
  20.     char temp[2];
  21.     PRequestBuf request(temp);
  22.     request << bDefault;
  23.     
  24.     char replyBuf[REPLY_SIZE];
  25.     PQuery query(pm_getlinkoptions, request, replyBuf, REPLY_SIZE);
  26.     
  27.     PReplyBuf reply(replyBuf);
  28.     
  29.     reply    >> bTextUpdate
  30.             >> bTextAlert
  31.             >> bImageStore
  32.             >> bImageUpdate
  33.             >> bImageAlert;
  34. }
  35.  
  36. // end of PGetLinkOptions.cpp
  37.